<html>
<head>
<title></title>
</head>

<body bgcolor="#FFFFFF">
<p class="Decl"><b>procedure</b> WriteTo(Dest: <a href="../../../../GR32/Classes/TBitmap32/_Body.htm">TBitmap32</a>; 
  Conversion: <a href="../../../Types/TConversionType.htm">TConversionType</a>); 
  <b>overload</b>; <br>
  <b>procedure</b> WriteTo(Dest: <a href="../../../../GR32/Classes/TBitmap32/_Body.htm">TBitmap32</a>; 
  <b>const</b> Palette: <a href="../../../../GR32/Types/Color%20Types.htm#TPalette32">TPalette32</a>); 
  <b>overload</b>;</p>
<h2>Description</h2>
<p class="Body"><span class="EmptyRef">WriteTo</span> fills the <b>Dest</b> bitmap 
  using the values stored in the byte map.</p>
<p class="Body">If it is necessary, the destination bitmap is resized to fit the 
  byte map dimensions. </p>
<p class="Body">The following table shows how 8-bit data is transformed into 32-bit 
  RGBA color depending on <b>Conversion</b> parameter.</p>
<table border="1" cellspacing="0" cellpadding="0" bordercolor="silver" style="margin-left: 40px;">
  <tr> 
    <th style="text-align:left" width="180px">Conversion</th>
    <th style="text-align:left">Action</th>
  </tr>
  <tr> 
    <td>ctRed</td>
    <td>Copies bytes into red channel</td>
  </tr>
  <tr> 
    <td>ctGreen</td>
    <td>Copies bytes into green channel</td>
  </tr>
  <tr> 
    <td>ctBlue</td>
    <td>Copies bytes into blue channel</td>
  </tr>
  <tr> 
    <td>ctAlpha</td>
    <td>Copies bytes into alpha channel</td>
  </tr>
  <tr> 
    <td>ctUniformRGB</td>
    <td rowspan="2">Copies the same byte value into red, green and blue channels.</td>
  </tr>
  <tr> 
    <td>ctWeightedRGB</td>
  </tr>
</table>
<p class="Body"><span class="EmptyRef">WriteTo</span> method does not distinguish 
  between ctUniformRGB and ctWeightedRGB conversion types.</p>
<p class="Body">Note, that this method alters only the specified color channels, 
  other channels remain intact.</p>
<p class="Body">The second overloaded version with <b>Palette</b> parameter uses 
  <a href="../../../../GR32/Types/Color%20Types.htm#TPalette32">TPalette32</a> 
  array to map byte values into RGBA colors.</p>
<p id="hidden">[See Also] </p>
</body>
</html>
